<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>  

<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		
		<!--[if gt IE 8]>
	        <meta http-equiv="X-UA-Compatible" content="IE=edge" />        
	    <![endif]-->

		<title>报名系统</title>
		<%@include file="res.jsp"%>
		<%@include file="htmledit.jsp"%>
		 
	</head>

	<body>

		<jsp:include page="header.jsp"></jsp:include>
		<jsp:include page="menu.jsp"></jsp:include>

		<jsp:include page="com_bbs.jsp"></jsp:include>

		<div class="content">

			<div class="row-fluid">

				<div class="span12">

					<div class="widget">  
						<div class="head dark">
							<div class="icon">
								<i class="icos-pencil2"></i>
							</div>
							<h2>
								添加文章
							</h2>
						</div>
						<form action="page/article_add.action" method="post" id="validate">
						<div class="block-fluid">
							<input type="hidden" name="opt" value="save"/> 
							<div class="row-form">
								<div class="span1">
									标题
								</div>
								<div class="span10">
									<input type="text" class="validate[required,minSize[2],maxSize[40]]" name="title" placeholder="请输入标题 ">
									<span class="bottom" style="color:red"><s:fielderror fieldName="title"/></span>
								</div> 
								
							</div>
							<div class="row-form">
								<div class="span1">
									描述
								</div>
								<div class="span10">
									<textarea name="describes"  class="validate[required,minSize[5],maxSize[500]]"  placeholder="描述"></textarea>
									<span class="bottom" style="color:red"><s:fielderror fieldName="describes"/></span>
								</div>
							</div>
							<div class="row-form">
								<div class="span1">
									排序
								</div>
								<div class="span10">
									<input type="text" class="validate[required,custom[integer],min[1]]" name="sort" placeholder="文章的重要性,数字越大文章显示越在前面">
									<span class="bottom" style="color:red"><s:fielderror fieldName="sort"/></span>
								</div>
							</div>
							<div class="row-form">
								<div class="span1">
									内容
								</div>
								<div class="span10">
									<textarea name="content"  class="validate[required,minSize[500]]"  style="height: 300px;"
										placeholder="Placeholder example"></textarea>
									<span class="bottom" style="color:red"><s:fielderror fieldName="content"/></span>
								</div>
							</div>

							<div class="toolbar bottom TAL">
							   <div class="btn-group">
									<button onclick="$('#validate').validationEngine('hide');" type="button" class="btn btn-info">隐藏</button>
									<button class="btn btn-primary">
										发布
									</button>
								</div>
								&nbsp;&nbsp;
								<div class="checker" style="width: 100px;">
									<span class="checked"> 
									<input type="checkbox" name="isShow" value="1" checked="checked">
								</span>可见</div>
							</div>

						</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</body>

</html>
